package com.rybbaby.tss.front.tssClassAttendance.entity;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @description ����
 * 
 * @author �״���
 * 
 * @createDate 2017-09-20 ����5:57:00
 */
@Entity
@Table(name = "tss_class_attendance")
@DynamicUpdate(true)
@DynamicInsert(true)
public class TssClassAttendance implements Serializable {
	
	private static final long serialVersionUID = 32057355869454L;
	
	/**  id**/
	private String id;
	/** 班级id**/
	private String classId;
	/** 课节id **/
	private String lessonsId;
	/** 创建时间 **/
	private java.sql.Timestamp createTime;
	/** 考勤状态 **/
	private Integer attendanceStatus;
	
	/**
	 * 主键
	 *
	 * @return java.lang.String 
	 */
	@Id
	@GeneratedValue(generator = "tss_class_attendanceIDGenerator" , strategy = GenerationType.AUTO)
	@GenericGenerator(name = "tss_class_attendanceIDGenerator" , strategy = "uuid")
	@Column(name = "id", nullable= false, length = 32)
	public String getId() {
		return this.id;
	}
	
	/**
	 * 主键
	 *
	 * @param id 
	 */
	public void setId(String id) {
		this.id = id;
	}
	
	@Column(name = "classId", nullable= true, length = 32)
	public String getClassId() {
		return this.classId;
	}
	
	public void setClassId(String classId) {
		this.classId = classId;
	}

	@Column(name = "lessonsId", nullable= true, length = 32)
	public String getLessonsId() {
		return lessonsId;
	}

	public void setLessonsId(String lessonsId) {
		this.lessonsId = lessonsId;
	}

	@Column(name = "createTime", nullable= true, length = 19)
	public java.sql.Timestamp getCreateTime() {
		return this.createTime;
	}
	
	public void setCreateTime(java.sql.Timestamp createTime) {
		this.createTime = createTime;
	}
	
	@Column(name = "attendanceStatus", nullable= true, length = 12)
	public Integer getAttendanceStatus() {
		return this.attendanceStatus;
	}
	
	public void setAttendanceStatus(Integer attendanceStatus) {
		this.attendanceStatus = attendanceStatus;
	}
}